package com.javafactroy.kunlong;

import com.javafactroy.kunlong.base.model.ApiPageInfo;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.MethodOrderer;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.TestInstance;
import org.junit.jupiter.api.TestMethodOrder;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit.jupiter.SpringExtension;

import java.util.List;
import com.javafactroy.kunlong.data.entity.TSysUserApiEntity;
import com.javafactroy.kunlong.data.service.TSysUserService;
import com.javafactroy.kunlong.web.TSysUserWeb;
/**
*  @author raymond.lei@163.com
*  @date   2023-11-02 21:29:03

*/
@SpringBootTest(classes = {WebDbAgent.class}, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ExtendWith(SpringExtension.class)
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
@TestMethodOrder(MethodOrderer.MethodName.class)

@Slf4j
public class TSysUserTestWeb {
    @Autowired
    TSysUserWeb web;

    @Test
    public void test001_query() {
        ApiPageInfo<TSysUserApiEntity> list = web.query(new TSysUserApiEntity());
       // log.info("list={}", list);

    }
    @Test
    public void test002_selectByPkey() {
        TSysUserApiEntity list = web.selectByPkey(1l);
        //log.info("list={}", list);

    }

}
